function t(e) {
    return (t =
        'function' == typeof Symbol && 'symbol' == typeof Symbol.iterator
            ? function (t) {
                  return typeof t;
              }
            : function (t) {
                  return t && 'function' == typeof Symbol && t.constructor === Symbol && t !== Symbol.prototype
                      ? 'symbol'
                      : typeof t;
              })(e);
}
import e from 'dayjs';
var n =
    'undefined' != typeof globalThis
        ? globalThis
        : 'undefined' != typeof window
        ? window
        : 'undefined' != typeof global
        ? global
        : 'undefined' != typeof self
        ? self
        : {};
function r() {
    throw new Error('Dynamic requires are not currently supported by @rollup/plugin-commonjs');
}
var o = (function (t, e, n) {
        return (
            t(
                (n = {
                    path: e,
                    exports: {},
                    require: function (t, e) {
                        return r(null == e && n.path);
                    }
                }),
                n.exports
            ),
            n.exports
        );
    })(function (e, r) {
        e.exports = (function () {
            function e(t) {
                return 'function' == typeof t;
            }
            function r() {
                var t = setTimeout;
                return function () {
                    return t(o, 1);
                };
            }
            function o() {
                for (var t = 0; t < m; t += 2) (0, x[t])(x[t + 1]), (x[t] = void 0), (x[t + 1] = void 0);
                m = 0;
            }
            function i(t, e) {
                var n = this,
                    r = new this.constructor(u);
                void 0 === r[C] && y(r);
                var o = n._state;
                if (o) {
                    var i = arguments[o - 1];
                    g(function () {
                        return d(o, r, i, n._result);
                    });
                } else p(n, r, t, e);
                return r;
            }
            function s(e) {
                if (e && 'object' == t(e) && e.constructor === this) return e;
                var n = new this(u);
                return a(n, e), n;
            }
            function u() {}
            function c(t, n, r) {
                n.constructor === t.constructor && r === i && n.constructor.resolve === s
                    ? (function (t, e) {
                          e._state === P
                              ? l(t, e._result)
                              : e._state === q
                              ? h(t, e._result)
                              : p(
                                    e,
                                    void 0,
                                    function (e) {
                                        return a(t, e);
                                    },
                                    function (e) {
                                        return h(t, e);
                                    }
                                );
                      })(t, n)
                    : void 0 === r
                    ? l(t, n)
                    : e(r)
                    ? (function (t, e, n) {
                          g(function (t) {
                              var r = !1,
                                  o = (function (t, e, n, r) {
                                      try {
                                          t.call(e, n, r);
                                      } catch (t) {
                                          return t;
                                      }
                                  })(
                                      n,
                                      e,
                                      function (n) {
                                          r || ((r = !0), e !== n ? a(t, n) : l(t, n));
                                      },
                                      function (e) {
                                          r || ((r = !0), h(t, e));
                                      },
                                      t._label
                                  );
                              !r && o && ((r = !0), h(t, o));
                          }, t);
                      })(t, n, r)
                    : l(t, n);
            }
            function a(e, n) {
                if (e === n) h(e, new TypeError('You cannot resolve a promise with itself'));
                else if (
                    (function (e) {
                        var n = t(e);
                        return null !== e && ('object' === n || 'function' === n);
                    })(n)
                ) {
                    var r = void 0;
                    try {
                        r = n.then;
                    } catch (t) {
                        return void h(e, t);
                    }
                    c(e, n, r);
                } else l(e, n);
            }
            function f(t) {
                t._onerror && t._onerror(t._result), v(t);
            }
            function l(t, e) {
                t._state === O && ((t._result = e), (t._state = P), 0 !== t._subscribers.length && g(v, t));
            }
            function h(t, e) {
                t._state === O && ((t._state = q), (t._result = e), g(f, t));
            }
            function p(t, e, n, r) {
                var o = t._subscribers,
                    i = o.length;
                (t._onerror = null), (o[i] = e), (o[i + P] = n), (o[i + q] = r), 0 === i && t._state && g(v, t);
            }
            function v(t) {
                var e = t._subscribers,
                    n = t._state;
                if (0 !== e.length) {
                    for (var r = void 0, o = void 0, i = t._result, s = 0; s < e.length; s += 3)
                        (r = e[s]), (o = e[s + n]), r ? d(n, r, o, i) : o(i);
                    t._subscribers.length = 0;
                }
            }
            function d(t, n, r, o) {
                var i = e(r),
                    s = void 0,
                    u = void 0,
                    c = !0;
                if (i) {
                    try {
                        s = r(o);
                    } catch (t) {
                        (c = !1), (u = t);
                    }
                    if (n === s)
                        return void h(n, new TypeError('A promises callback cannot return that same promise.'));
                } else s = o;
                n._state !== O || (i && c ? a(n, s) : !1 === c ? h(n, u) : t === P ? l(n, s) : t === q && h(n, s));
            }
            function y(t) {
                (t[C] = F++), (t._state = void 0), (t._result = void 0), (t._subscribers = []);
            }
            var _ = Array.isArray
                    ? Array.isArray
                    : function (t) {
                          return '[object Array]' === Object.prototype.toString.call(t);
                      },
                m = 0,
                b = void 0,
                w = void 0,
                g = function (t, e) {
                    (x[m] = t), (x[m + 1] = e), 2 === (m += 2) && (w ? w(o) : M());
                },
                A = 'undefined' != typeof window ? window : void 0,
                S = A || {},
                j = S.MutationObserver || S.WebKitMutationObserver,
                E =
                    'undefined' == typeof self &&
                    'undefined' != typeof process &&
                    '[object process]' === {}.toString.call(process),
                T =
                    'undefined' != typeof Uint8ClampedArray &&
                    'undefined' != typeof importScripts &&
                    'undefined' != typeof MessageChannel,
                x = new Array(1e3),
                M = void 0;
            M = E
                ? function () {
                      return process.nextTick(o);
                  }
                : j
                ? (function () {
                      var t = 0,
                          e = new j(o),
                          n = document.createTextNode('');
                      return (
                          e.observe(n, { characterData: !0 }),
                          function () {
                              n.data = t = ++t % 2;
                          }
                      );
                  })()
                : T
                ? (function () {
                      var t = new MessageChannel();
                      return (
                          (t.port1.onmessage = o),
                          function () {
                              return t.port2.postMessage(0);
                          }
                      );
                  })()
                : void 0 === A
                ? (function () {
                      try {
                          var t = Function('return this')().require('vertx');
                          return void 0 !== (b = t.runOnLoop || t.runOnContext)
                              ? function () {
                                    b(o);
                                }
                              : r();
                      } catch (t) {
                          return r();
                      }
                  })()
                : r();
            var C = Math.random().toString(36).substring(2),
                O = void 0,
                P = 1,
                q = 2,
                F = 0,
                Y = (function () {
                    function t(t, e) {
                        (this._instanceConstructor = t),
                            (this.promise = new t(u)),
                            this.promise[C] || y(this.promise),
                            _(e)
                                ? ((this.length = e.length),
                                  (this._remaining = e.length),
                                  (this._result = new Array(this.length)),
                                  0 === this.length
                                      ? l(this.promise, this._result)
                                      : ((this.length = this.length || 0),
                                        this._enumerate(e),
                                        0 === this._remaining && l(this.promise, this._result)))
                                : h(this.promise, new Error('Array Methods must be provided an Array'));
                    }
                    return (
                        (t.prototype._enumerate = function (t) {
                            for (var e = 0; this._state === O && e < t.length; e++) this._eachEntry(t[e], e);
                        }),
                        (t.prototype._eachEntry = function (t, e) {
                            var n = this._instanceConstructor,
                                r = n.resolve;
                            if (r === s) {
                                var o = void 0,
                                    a = void 0,
                                    f = !1;
                                try {
                                    o = t.then;
                                } catch (t) {
                                    (f = !0), (a = t);
                                }
                                if (o === i && t._state !== O) this._settledAt(t._state, e, t._result);
                                else if ('function' != typeof o) this._remaining--, (this._result[e] = t);
                                else if (n === k) {
                                    var l = new n(u);
                                    f ? h(l, a) : c(l, t, o), this._willSettleAt(l, e);
                                } else
                                    this._willSettleAt(
                                        new n(function (e) {
                                            return e(t);
                                        }),
                                        e
                                    );
                            } else this._willSettleAt(r(t), e);
                        }),
                        (t.prototype._settledAt = function (t, e, n) {
                            var r = this.promise;
                            r._state === O && (this._remaining--, t === q ? h(r, n) : (this._result[e] = n)),
                                0 === this._remaining && l(r, this._result);
                        }),
                        (t.prototype._willSettleAt = function (t, e) {
                            var n = this;
                            p(
                                t,
                                void 0,
                                function (t) {
                                    return n._settledAt(P, e, t);
                                },
                                function (t) {
                                    return n._settledAt(q, e, t);
                                }
                            );
                        }),
                        t
                    );
                })(),
                k = (function () {
                    function t(e) {
                        (this[C] = F++),
                            (this._result = this._state = void 0),
                            (this._subscribers = []),
                            u !== e &&
                                ('function' != typeof e &&
                                    (function () {
                                        throw new TypeError(
                                            'You must pass a resolver function as the first argument to the promise constructor'
                                        );
                                    })(),
                                this instanceof t
                                    ? (function (t, e) {
                                          try {
                                              e(
                                                  function (e) {
                                                      a(t, e);
                                                  },
                                                  function (e) {
                                                      h(t, e);
                                                  }
                                              );
                                          } catch (e) {
                                              h(t, e);
                                          }
                                      })(this, e)
                                    : (function () {
                                          throw new TypeError(
                                              "Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function."
                                          );
                                      })());
                    }
                    return (
                        (t.prototype.catch = function (t) {
                            return this.then(null, t);
                        }),
                        (t.prototype.finally = function (t) {
                            var n = this,
                                r = n.constructor;
                            return e(t)
                                ? n.then(
                                      function (e) {
                                          return r.resolve(t()).then(function () {
                                              return e;
                                          });
                                      },
                                      function (e) {
                                          return r.resolve(t()).then(function () {
                                              throw e;
                                          });
                                      }
                                  )
                                : n.then(t, t);
                        }),
                        t
                    );
                })();
            return (
                (k.prototype.then = i),
                (k.all = function (t) {
                    return new Y(this, t).promise;
                }),
                (k.race = function (t) {
                    var e = this;
                    return new e(
                        _(t)
                            ? function (n, r) {
                                  for (var o = t.length, i = 0; i < o; i++) e.resolve(t[i]).then(n, r);
                              }
                            : function (t, e) {
                                  return e(new TypeError('You must pass an array to race.'));
                              }
                    );
                }),
                (k.resolve = s),
                (k.reject = function (t) {
                    var e = new this(u);
                    return h(e, t), e;
                }),
                (k._setScheduler = function (t) {
                    w = t;
                }),
                (k._setAsap = function (t) {
                    g = t;
                }),
                (k._asap = g),
                (k.polyfill = function () {
                    var t = void 0;
                    if (void 0 !== n) t = n;
                    else if ('undefined' != typeof self) t = self;
                    else
                        try {
                            t = Function('return this')();
                        } catch (t) {
                            throw new Error('polyfill failed because global object is unavailable in this environment');
                        }
                    var e = t.Promise;
                    if (e) {
                        var r = null;
                        try {
                            r = Object.prototype.toString.call(e.resolve());
                        } catch (t) {}
                        if ('[object Promise]' === r && !e.cast) return;
                    }
                    t.Promise = k;
                }),
                (k.Promise = k),
                k
            );
        })();
    }),
    i = function () {
        return o.resolve('箭头函数和promise');
    };
function s() {
    return o.resolve('tes22222aaaaa');
}
function u() {
    return e();
}
export { u as box, i as test1, s as test2 };
